<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1"><title>
	销售机会
</title><link href="Styles/css.css" rel="stylesheet" type="text/css" /><link href="Styles/ts_css.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery.js" type="text/javascript"></script>
    <script src="Scripts/jquery.hotkeys.js" type="text/javascript"></script>
    <script src="Scripts/jstree/jquery.jstree.js" type="text/javascript"></script>
    <script src="Scripts/jquery.cookie.js" type="text/javascript"></script>
    <!-- <script src="Scripts/EmployeesManager.js" type="text/javascript"></script> -->
    <!--<script src="Scripts/EmployeesManager.js?0d189a86cc764626a482e60e084441dd" type="text/javascript"></script>-->
</head>
<body style="margin-top: 5px; background: #EFF3FF;">
  

 
<script type="text/javascript"> 
//<![CDATA[
    var theForm = document.forms['form1'];
    if (!theForm) {
        theForm = document.form1;
    }
    function __doPostBack(eventTarget, eventArgument) {
        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
            theForm.__EVENTTARGET.value = eventTarget;
            theForm.__EVENTARGUMENT.value = eventArgument;
            theForm.submit();
        }
    }
//]]>
    function openWin(id) {
    
       location.href="selectsaleupdate.do?saleChanceId="+id;
    }
   
</script>
 
    <div style="background: #EFF3FF; width: 22%; float: left; overflow-y: auto;">
        <div id="tree" class="tree" style="background: #EFF3FF;">
        </div>
    </div>
    <div style="width: 75%; float: left; border: 0px solid #82AFE8">
        
         <form method="post" action="selectsale.do" >
        <table width="100%">
          
            <tr>
                <td width="6%">
                    机会名称
                </td>
                <td width="13%">
                    <input name="saleChanceName" type="text" id="saleChanceName" style="width:95%;" />
                </td>
                <td width="7%">
                    客户姓名
                </td>
                <td width="13%">
                    <input name="customerName" type="text" id="customerName" style="width:95%;" />
                </td>
            
                <td width="7%">
                    业务员编号
                </td>
                <td width="13%">
                    <input name="number" type="text" id="number" style="width:95%;" />
                </td>
                <td width="13%">
                    <input style="border-style: none; border-color: inherit; border-width: 0px; background-image: url('Images/search.gif'); width: 100px; height: 24px;" 
                        type="submit" />
                </td>
              
                <td width="5%">
                    <a href="addsalemanager.jsp"> <input type="button" id="btnAdd" class="button" style="float: right" value="添加" /></a>
                </td>
            </tr>
        </table>
          </form>
        <div class="cxlb_2" style="width: 100%">
            <table width="120%" class="tablist">
                <thead id="tablistHer">
                    <tr>
                        <th width="10%">
                            业务员姓名
                        </th>
                        <th width="10%">
                            编号
                        </th>
                        <th width="6%">
                           机会名称
                        </th>
                        <th width="12%">
                            客户姓名
                        </th>
                        <th width="12%">
                            意向房间
                        </th>
                        <th width="10%">
                           客户电话   
                        </th>
                        <th width="10%">
                状态             
                        </th>
                       
                       
                        <th width="10%">
                            操作
                        </th>
                    </tr>
                </thead>
                <tbody id="tab">
                     <c:forEach items="${list}" var="sale">
                   <tr>
                            
                            <td >
                                 ${sale.userName}
                            </td>
                            <td >
                               ${sale.number}
                                 
                            </td>
                            <td >
                            ${sale.saleChanceName}
                                 
                            </td>
                            <td >
                            ${sale.customerName}
                               
                            </td>
                            <td >
                             ${sale.intentionDescription}
                              
                            </td>
                            <td >
                              ${sale.tel}   
                            </td>
                             <td >
                              ${sale.state}
                                
                            </td>
                           
                             
                            
                            <td >
                                <a href="javascript:void(0);" onclick="openWin('${sale.saleChanceId}')">修改</a>||
                                
                                <a href="javascript:void(0);" onclick="fun1('${sale.saleChanceId}')">删除</a>
                            </td>
                        </tr>
                   </c:forEach>
                        
                </tbody>
            </table>
            <script type="text/javascript">
<!--
                var Ptr = document.getElementById("tab").getElementsByTagName("tr");
                function pageLoad() {
                    for (i = 1; i < Ptr.length + 1; i++) {
                        Ptr[i - 1].className = (i % 2 > 0) ? "t1" : "t2";
                    }
                }
                window.onload = pageLoad;
                for (var i = 0; i < Ptr.length; i++) {
                    Ptr[i].onmouseover = function () {
                        this.tmpClass = this.className;
                        this.className = "t3";

                    };
                    Ptr[i].onmouseout = function () {
                        this.className = this.tmpClass;
                    };
                }
//-->
function fun1(id){
  		if(confirm("是否确定删除!")){
  			location.href="deletesale.do?saleChanceId="+id;
  		}}
            </script>
            
             <div style="width: 100%;">
            
<!-- AspNetPager 7.3.2  Copyright:2003-2010 Webdiyer (www.webdiyer.com) -->
<div id="AspNetPager1" class="anpager" style="width:100%;text-align:left;">
<div align="left" class="anpager" style="width:60%;float:left;">
	<a disabled="disabled" style="margin-right:10px;">首页</a><a disabled="disabled" style="margin-right:10px;">上一页</a><span class="cpb" style="margin-right:10px;">1</span><a disabled="disabled" style="margin-right:10px;">下一页</a><a disabled="disabled" style="margin-right:10px;">尾页</a>
</div><div class="anpager" style="width:40%;float:left;">
	记录总数：<font color="blue"><b>1</b></font> 总页数：<font color="blue"><b>1</b></font> 当前页：<font color="red"><b>1</b></font>
</div>
</div>
<!-- AspNetPager 7.3.2  Copyright:2003-2010 Webdiyer (www.webdiyer.com) -->
 
 
        </div>
        </div>
       
    </div>
    <input type="hidden" name="hidParentUuid" id="hidParentUuid" />
    <input type="hidden" name="hidUuid" id="hidUuid" />
    <input type="hidden" name="hidCookUuid" id="hidCookUuid" value="100002" />
    <input type="hidden" id="isShow" value="0" />
    <input name="hidpanelShow" type="hidden" id="hidpanelShow" />
    <input type="hidden" id="hidorganizationUuid" />
    <input type="hidden" id="hidfromSubmit" name="hidfromSubmit" value="1" />
    <input type="hidden" id="hidfromSubmit1" name="hidfromSubmit1" />
  <!--   <span id="lblScript"><script> $.cookie('jstree_open', '')</script></span>
 -->    

</body>
</html>

